#ifndef _IN_SDK_WIFI_SCAN_H_
#define _IN_SDK_WIFI_SCAN_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "iwlib.h"
#include "InCommon.h"

#define MAX_WIFI_LIST   80

enum {
    WIFI_ENCRYPT_MODE_OPEN = 0,
    WIFI_ENCRYPT_MODE_WPA2,
    WIFI_ENCRYPT_MODE_WEP,
    WIFI_ENCRYPT_MODE_UNKONW,
};

enum {
    WIFI_CURRENT_NET_STAT_NO_CONFIG = 0,
    WIFI_CURRENT_NET_STAT_CONNECTED,
    WIFI_CURRENT_NET_STAT_CONNECTING,
};

enum {
    SCAN_WIFI_OFF = 0 ,
    SCAN_WIFI_ON ,
    SCAN_WIFI_SCANING,
};

void Ext_InSdkWiFiScan_SetType(int type);
int Ext_InSdkWiFiScan_InitInternel(char *wifi_name);
int Ext_InSdkWiFiScan_CheckEncrypt(char *ssid);
int Ext_InSdkWiFiScan_SaveCfgFile(const char *filepath, char *ssid, char *passwd, int cfgfile_type);
int Ext_InSdkWiFiScan_Stop(void);
void Ext_InSdkWiFiScan_SaveHideCfgFile(char *ssid, char *passwd);

#endif

